#ifndef _AA
# define _AA

#define BUFFER_SIZE	512

#include <stdlib.h>

typedef struct	s_trade
{
  int		start_money; //argent depart
  int		current_money; //argent en cours
  int		total_days; //jour total
  int		current_day; //jour en cours
  int		current_auction; // auction
  int		nb_auction;
  int		last_bought;
}		t_trade;

typedef struct etude
{
  int		val_max;
  int		val_min;
  int		freq; // monte et descend tout les cb de jours
  int		moy; // moyenne ....
  int		current_day;
  int		tot_action;
}		t_etude;

void		fill_etude(int current_action, t_etude *etude);
char		*int_to_char(int nb);
void		init_trade(t_trade *trade);
void		init_etude(t_etude *etude);

#endif
